<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/plantillas/default.xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">
    <ui:define name="titulo">
        <h:outputText value="Cambiar contrase&ntilde;a"/>
    </ui:define>
    <ui:define name="titulo_contenido">
        <f:attribute name="header" value="Cambiar contrase&ntilde;a"/>
    </ui:define>
    <ui:define name="acciones">
        <p:submenu label="Contrase&ntilde;a">
            <p:menuitem value="Cambiar contrase&ntilde;a" icon="ui-icon-key" process="@(#westForm,#centerForm)" action="#{cambiaPasswd.cambiarPasswd$action}"/>
        </p:submenu>
        <p:submenu label="Navegaci&oacute;n">
            <p:menuitem value="Inicio" icon="ui-icon-home" action="inicio?faces-redirect=true"/>
            <p:menuitem value="Cerrar sesi&oacute;n" icon="ui-icon-locked" action="#{login.cerrarSesion$action}"/>
        </p:submenu>        
    </ui:define>
    <ui:define name="contenido">
        <h:panelGrid columns="2" width="80%">
            <h:outputLabel value="Usuario:"/>
            <p:inputText value="#{cambiaPasswd.usuario.id}" readonly="true" style="width: 300px;"/>
            <h:outputLabel value="Contrase&ntilde;a actual:"/>
            <p:password value="#{cambiaPasswd.passwdActual}" feedback="false" label="Contrase&ntilde;a actual" style="width: 300px;" required="true"/>
            <h:outputLabel value="Contrase&ntilde;a:"/>
            <p:password id="passwd1" value="#{cambiaPasswd.passwd1}" match="passwd2" feedback="true" label="Contrase&ntilde;a" style="width: 300px;" required="true"/>
            <h:outputLabel value="Confirmar contrase&ntilde;a:"/>
            <p:password id="passwd2" value="#{cambiaPasswd.passwd2}" feedback="true" label="Confirmar contrase&ntilde;a" style="width: 300px;" required="true"/>
        </h:panelGrid>
    </ui:define>
    <ui:define name="dialogos"/>
</ui:composition>